package org.kfive.nova.patterns;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 15-2-24
 * Time: 下午5:39
 * To change this template use File | Settings | File Templates.
 */
public class WeatherData extends AbstractObservable implements Observable {

    private float temperature;

    private float humidity;

    private float pressure;

    public void setMeasurements(float temperature,float humidity,float pressure){
        this.temperature = temperature;
        this.humidity = humidity;
        this.pressure = pressure;
        this.notifyObservers();
    }


}
